<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Level Admin</title>
        <link rel="stylesheet" href="/admin/css/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/admin/css/style.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="/admin/css/invalid.css" type="text/css" media="screen" />	
        <script type="text/javascript" src="/admin/scripts/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="/admin/scripts/simpla.jquery.configuration.js"></script>
        <script type="text/javascript" src="/admin/scripts/facebox.js"></script>
        <script type="text/javascript" src="/admin/scripts/jquery.wysiwyg.js"></script>
        <script type="text/javascript" src="/admin/scripts/jquery.datePicker.js"></script>
        <script type="text/javascript" src="/admin/scripts/jquery.date.js"></script>
    </head>
    <body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->

            <div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->

                    <h1 id="sidebar-title"><a href="#">Level Admin</a></h1>

                    <!-- Logo (221px wide) -->
                    <a href="/admin/index.php"><img id="logo" src="/admin/images/logo.png" alt="Simpla Admin logo" /></a>

                    <!-- Sidebar Profile links -->
                    <div id="profile-links">
                        Hello, <a href="#" title="Edit your profile">Administrator</a>
                        <br />
                        <a href="/" title="View the Site">View the Site</a> | <a href="/admin/index.php/index/logout" title="Sign Out">Sign Out</a>
                    </div>        

                    <ul id="main-nav">  <!-- Accordion Menu -->

                        <li>
                            <a href="/admin/index.php/Case/index" class="nav-top-item no-submenu current">案例管理</a>
                            <ul>
                                <li><a class="current" href="/admin/index.php/Case/index">案例列表</a></li>
                                <li><a href="/admin/index.php/Case/recommandList">首页案例列表</a></li>
                                <li><a href="/admin/index.php/Case/create">添加案例</a></li>
                            </ul>
                        </li>
                        <li> 
                            <a href="/admin/index.php/News/index/type/1" class="nav-top-item">新闻管理</a>
                            <ul>
                                <li><a href="/admin/index.php/News/index/type/1">最新案例</a></li>
                                <li><a href="/admin/index.php/News/index/type/2">力洋活动</a></li> <!-- Add class "current" to sub menu items also -->
                                <li><a href="/admin/index.php/News/create">添加新闻</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="/admin/index.php/Career/index" class="nav-top-item">职业管理</a>
                            <ul>
                                <li><a href="/admin/index.php/Career/index">职业列表</a></li>
                                <li><a href="/admin/index.php/Career/create">添加职业</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="/admin/index.php/Bgimage/index" class="nav-top-item">背景图管理</a>
                            <ul>
                                <li><a href="/admin/index.php/Bgimage/index">背景图列表</a></li>
                                <li><a href="/admin/index.php/Bgimage/create">添加背景图</a></li>
                            </ul>
                        </li>
                    </ul> <!-- End #main-nav -->

                </div></div> <!-- End #sidebar -->

            <div id="main-content"> <!-- Main Content Section with everything -->

                <!-- Page Head -->
                <h2>Welcome</h2>
                <p id="page-intro">What would you like to do?</p>

                <ul class="shortcut-buttons-set">

                    <li><a class="shortcut-button" href="/admin/index.php/Case/create"><span>
                                <img src="/admin/images/icons/paper_content_pencil_48.png" alt="icon" /><br />
                                添加案例
                            </span></a></li>

                </ul><!-- End .shortcut-buttons-set -->

                <div class="clear"></div> <!-- End .clear -->

                <div class="content-box"><!-- Start Content Box -->

                    <div class="content-box-header">

                        <h3>案例列表</h3>

                        <div class="clear"></div>

                    </div> <!-- End .content-box-header -->

                    <div class="content-box-content">
                        <div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
                            <form action="/admin/index.php/Case/caseOrder" method="post">
                                <table>
                                    <thead>
                                        <tr>
                                            <th>中文</th>
                                            <th>英文</th>
                                            <th>展会</th>
                                            <th>时间</th>
                                            <th>地点</th>
                                            <th>面积</th>
                                            <th>操作</th>
                                            <th>顺序</th>
                                        </tr>

                                    </thead>
                                    <tfoot>
                                        <tr>
                                            <td colspan="6">
                                                <p>
                                                    <input class="button" type="submit" value="提交修改" />
                                                </p>

                                                <div class="clear"></div>
                                            </td>
                                        </tr>
                                    </tfoot>
                                    <tbody>
                                        <?php for ($i = 0; $i < count($case); $i++) { ?>
                                            <tr>
                                                <td><?php echo $case[$i]['name_ch'] ?></td>
                                                <td><?php echo $case[$i]['name_en'] ?></td>
                                                <td><?php echo $case[$i]['show'] ?></td>
                                                <td><?php echo $case[$i]['time'] ?></td>
                                                <td><?php echo $case[$i]['place'] ?></td>
                                                <td><?php echo $case[$i]['area'] ?></td>
                                                <td>
                                                    <!-- Icons -->
                                                    <a href="/admin/index.php/Case/addRecommand/id/<?php echo $case[$i]['id'] ?>" title="放首页">放到首页</a> 
                                                    <a href="/admin/index.php/Case/modify/id/<?php echo $case[$i]['id'] ?>" title="Edit"><img src="/admin/images/icons/pencil.png" alt="Edit" /></a>
                                                    <a href="/admin/index.php/Case/delete/id/<?php echo $case[$i]['id'] ?>" title="Delete"><img src="/admin/images/icons/cross.png" alt="Delete" /></a>
                                                </td>
                                                <td>
                                                    <input type="text" size="2" name="order[]" value="<?php echo $case[$i]['orderid']?>"/>
                                                </td>
                                            </tr>
                                        <?php } ?>
                                    </tbody>

                                </table>
                            </form>
                        </div> <!-- End #tab1 -->       

                    </div> <!-- End .content-box-content -->

                </div> <!-- End .content-box -->

                <div class="clear"></div>

                <div id="footer">
                    <small> <!-- Remove this notice or replace it with whatever you want -->
                        &#169; Copyright 2009 Your Company | Powered by <a href="http://themeforest.net/item/simpla-admin-flexible-user-friendly-admin-skin/46073">Simpla Admin</a> | <a href="#">Top</a>
                    </small>
                </div><!-- End #footer -->

            </div> <!-- End #main-content -->
        </div></body>
</html>
